module.exports={
    devServer: {
        proxy: {
            '/api': {    // search为转发路径
                target: 'http://howling.top:8001/System/',  // 目标地址
                ws: true, // 是否代理websockets
                changeOrigin: true,   // 设置同源  默认false，是否需要改变原始主机头为目标URL,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },
    // configureWebpack: {
    //     // provide the app's title in webpack's name field, so that
    //     // it can be accessed in index.html to inject the correct title.
    //     name: name,
    //     resolve: {
    //         alias: {
    //             '@': resolve('src')
    //         }
    //     }
    // },
}